package org.turman.buobaobook.service;


import com.github.pagehelper.PageInfo;
import org.turman.buobaobook.model.entity.Book;
import org.turman.buobaobook.model.entity.BookSource;
import org.turman.buobaobook.model.request.QueryBookBean;

import java.util.List;

public interface BookService {
    Book selectById(Long bookId);

    PageInfo<Book> selectList(QueryBookBean queryBookBean);

    void insert(Book book, List<BookSource> bookSources);
    void update(Book book);

    void delete(Long bookId);
}
